package com.myschool.server.model;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="student_score")
public class StudentScore extends BaseEntity {
	@Column(length=10,nullable=false)
	private String score;
	@ManyToOne(cascade=CascadeType.ALL,fetch=FetchType.LAZY)
	private User student;
	@ManyToOne(cascade=CascadeType.ALL,fetch=FetchType.LAZY)
	private Exam exam;
	/**
	 * @return the score
	 */
	public String getScore() {
		return score;
	}
	/**
	 * @param score the score to set
	 */
	public void setScore(String score) {
		this.score = score;
	}
	/**
	 * @return the student
	 */
	public User getStudent() {
		return student;
	}
	/**
	 * @param student the student to set
	 */
	public void setStudent(User student) {
		this.student = student;
	}
	/**
	 * @return the exam
	 */
	public Exam getExam() {
		return exam;
	}
	/**
	 * @param exam the exam to set
	 */
	public void setExam(Exam exam) {
		this.exam = exam;
	}
	
	
}
